adjust the status codes