refactored |n| n.to_i into proc for more dryness