fixing label functions