trying to fix sort