finishing up main