mark toHash as public