changed minus signs to equal sign