added label functionality