moved add nested to the helper