head input handling done