Changed data to rows