adding process stats method