added expandAndTuple