make scope read only