started converting NSKitMath