moved loop_data