added function to get OPD