fix deprecated scope warning