make sure inputData is traversable