ordering the output
order correct