fixed overlap time bug. need to be tested.