removed hash function; keeping that in separate branch for now