format hash
hash formatting