added math operations on spectrum object