fix example to 0-based (clearer)