remove sorting and use built in sort