delete input in a better place