cleanup excess clamping code and vector element multiply/shifts