refactored sluggish pol activity code - now runs 10 times faster