fixed locals, added globals