make scope more logical