rename to work for custom post types