move hash_(x) method from custom.py to tools.py
fixed the thing