refined the error feedback