refactoring
consolidate label modifying functions