created function which just computed delta and double delta