change scope of function