started implementing errors