rename isPrimary to primary.
 * format codes.
 * format codes.