implementing patrolling