properly set the set flag