add var-beta computation