strip error handling corrected