local variables fix