Remove scope deprecation warning sytax