delete unused function parameters
add viewcount to post listings, prettify code