added outflow layer