eliminated extraneous duplications for dostream cases