made some changes so it works | ScratchStats