sync and clean