added a printf to show how many times in do-loop (==1)