added median filter fr angVelFactor