cleaned up the main file