switch to local variables