with multiple outputs