add type for inner loops