improve frame sync