tried to add in vectorization