added duration method