fixed a bug with seperation sorting and cleaned
clean