emptying the coordinateslist improved