implemented methods for label handling