move stream to map