can someone vectorize this pls | ScratchStats