fix in scoping