revise inverse to exclude rests