Added functions setif() and qw2()