error with dividing and the unstabilized values messing up