added a low pass filter with a smoothening factor of 0.5