turning this into a proper program and fixed a doodoo in the b2to10