refactor status code check