label function implemented, no errors