add serialize for category