using find_by instead of where