save comp data in the doc as it is added