fix newtons & add our functions