updated the return on error number to correspond to appropriate break points