switch to use scope