fixed lookup bug
changed hash func