move output to the right place