add matherr dependency