had to remove sort because it is much to slow