Explain the purpose of the wc3_pal_lookup and the formula that was used to