added print_post,modified get_post