added method index