model scoping work