added duration var