added mehtod headers for calculatign errors and a dv_activation function code