more work on main file