added statistics output