reformat code, use .all instead of .find(:all)