implementation setSeek() function