modify seek path function