hash check works