exporting TEMP variable because it does not seem to work