adding some stat utils