working with internal datastructures in stats module
made stats without internal data structs