small vectorization change that makes a significant difference