changed to action_loop