use User.find_each instead of User.all.each