sync functions