implement 'expect(n)'