change duration to be a referenced param