local variable replacement algorithm skeleton, missing files