created functions for certain overall stats