add category to label, remove unneeded time units