setting remove_unnecessary_outputs to false