moving hashing macro to MASUtilities