add logic diagram