Calculate gradient and div as old version