clean up news feed code