update deprecated caption2 package to new caption