removing defer from Input