get_shift method added