removed extra memory stream