added TEMP file and other small changes