added methods to determine filter index