changing hash.new to []