scope reduction
scope reduction
scope reduction
remove dead function