hashes added and changed print method