starting the scope function