initial loop translation