refactoring: changed status format algorithm.