fix for scope