added the operation of a spectrum