improve filter for active instances
clarify previous commit with comment