add function to print dictionary in order