removed intermediate layers