Shifing prociedure almost working