replace heats arrays by array of structures