bad structure, commit can't be index, must be variable