format adapter package's codes