generate form is recursive for objects in objects