added global dictionary that will handle state