added index to print_student