added stats method