Optical supernovae and the hubble constant