wrote lookup table