removed extra code from index