scope resoltuion explained