added getInput. compiles but some pointer error