adding functions and post types file