adds nested version