scope rewritted as method