added case insensitivity to filter