update to comply with new GetLabel function