transform inputs