globals and states