formation of intermediate layers