changes the test and part of sort