removed unneccsary to_hash