minor code cleaning
done quick sort