cleaned up hash checks