TMP was defined twice