implement the firt bite of the key

somewhere has the problem got too more choice