fixed a few shifting errors