add getInput method