milestone 34: addded $error, still have error.