improve index filter