formatted index and added transitions.