now it's putting them in the correct order