added a dosync loop