remove extra hashes