compute_delta updated