added sorting thingy