add basic stat functions