hook inheritance