set returnStatus method static