eventually solve this math problem...