add handling of shifts that result in negative times