added nesting and votes