this one is quite complex | ScratchStats