BEGIN {}
{ id = "name" } 
{ if ( $2 != id )
	{
	print $1" "$2
	}
}
{ if ( $2 == id )
	{
	$1 = "type"
	print $1" "$2
	}
}
END {}
