replace scoped method with not deprecated one