draft of input replacer