changing sliding window to mili seconds and some logs