had the wrong order of output