changed duration to total