changing 'diagram to fig throughout'
finished changing diagram to fig