working, just wrong order printout