fixed bug in output