got rid of unused variables and now only displays user's own posts