added loop coordination