parser created for handling labels