got the sample patrolling working properly