add post_per_page and clean up if / while