refined the error