Dpc more

More issues related to dpc code are resolved.
Good suggestion. Otherwise checking c!=0 takes so many times. The code also looks tedious.