added some stuff to math ... c