changed create filter method