adaptation de stream a la class robot