intermediate pattern