added assert for simple document