maybe add a comment to warn that this doesn't work for backward scan?