simplify indexing in compensator