Fixed the shift method