ospl code modified