a set of functions | ScratchStats