removed duplicated initialisation of streams