finished implementing note computation logic