mentat dsl for selection function