made  sort1 work