sync doc with code