use different method for reg value