some updates to math