tested how many times lasted in loop