ereg is depreciated