refactor formatter expression