added to all sort functs