add primitive filtering option