use components index directly