improve pseudo demo