rename functions input -> input_each