modify seek logic