added method to remove an index