corrected friend decl and cnc_format for vectors