adding main output return