Subodocuments and nesting working correctly