added makeListOfObjectDirectionAndDistance