changed loop_count frequency to be 10