sliding hook method