using atomic add for thread safety
skeleton for filter itself