changed index to use the working example.