some more set_patterns cleanup