make sync method public