replace data by summat where applicable