introduce more efficient math derivation
update code