forgot to nest lastCoords if exists