copied the classes's index