added instance filtering