adding sub collections
sub collections added and restructuring of json