added setlocal