index: re-order var declarations