new function added for delta theta