adding submap in each element