added category writer