handle nested parentsets