Move index to contents

avoids confusion with pattern matching