function finder but it's actually efficient | ScratchStats