add phantom's c codes