update seek function