renamed solution numbers to be zero-based