[~i] gives you 0-based indexing from the back