cleaning received msg on every cycle