simplified the shifting