added the functionality for prinout in OPD