storing hook state