added a sync method i'm going to try out