fixed bug where output got no arguments