added set_zero_rc function (task B)