fixing sync (still not working)