forgot to add in the by hash function