remove hash.new in spec