made inputconditioner more flexible