update to use .sync instead of sync