changes in SyncController so that it can compiles