indentation and comment out multithread function