refactored find_post method