fixed subscripting with negatives