make stat example work