fixed some code and added | ScratchStats