convert unnecessary world variables to local variables