almost last error handling