simplify hooks