The optical variability of 3C345