added check for filter present