added a loop_rate