input deletion handling