invoking hook with corrected params