small bug in shouldProcess fixed