loop create/delete indexes