removed global state