write first row as ratio