fixed main to actuall do the shifts
edited main again for k200