fixed printing order