use hash methods