process hook