added sync method to NextTick