more tweaks on REsult to handle nested inner array