store state in hash