preparements for custom post type