this is complicated and inefficient | ScratchStats