replaced find with find_by