shift method added.