Changed use w = world to use world as w