finally got loop with proper separation working  final week2 commit