adding the cascade base code