better scope for dict