adding looper routine