using an output as the input of another simulation