overhaul of graphics math