added sma filter