removed uneeded variable "MAINFILE"