cleaning up the post model from old functions