set duration and inherit it correctly