update helper to mask runtimewarning