checks hash