correcting hash formatting