refact getStatus