implmement takeFirstFromHitted, takeLastFromhitted