convert to lexical scope