new with regerror