code example is meant to handle zones not regions