adding categories to the loop for entry