added a way to clean and sync data