add filtration template and modify demo