changed inline temp_adt functions to #defines. saves 154 bytes.