now with hamming + fixed function name bug