Fix

replace parent with parents to include all element on parents tree.
need to think more about performance and logic