rudimentary hashing