major changes
fix sorting hash