added RSSI smoothing