improve demo for maxdpr