added wandering behanvior