filter duplicate deviceid