finished near function