added categories
fixed and added category metric