removed the error trap