adding stats lib