replace find_by_post with where