remove seed variable and rename k to hashIndex