fixed up indices