use find_by instead of where.first