edited the shift method