phalanx code