lots more math debug