sync commit, added loop break