adding createFromDurationBeforeEnd