renamed index to animation