moving loops into 5/02