applied filter after reading from opts hash