complete the looper feature and testing