partial rewrite of if using domrange. also add questions.