some updates to math
update