converting category to series