small modification to behaviour wander