added hook class