add method for compute delta variable