added generator for post types