syphon output
fine tuning and removing irrelevant code