keep fixing stats updating method; prettify output format