changing hash function to start at 0