add reg validation
tmp