added scope and frame for scope processing