first not so efficient version of seek