can someone vectorize this? | ScratchStats