added a for looper