added type to streams