using controllers, scope functionality