changed to_json in hashcreation