Filter function for MRP and WMS- Manli