cleaned main file