added clear for marked neighbors