scoping for model