added function to sf, get_shifts