update power and duration