initial extension of isValidHash