please indent done function after sync to be more clear that is not on the same level.