resolving sammy scoping issue