writting 2 devices