messed up main file