there could be more than 10 nested records (tested)