refactored array.new to []