Here you say they both need to be specified, but below you allow "end" to be undefined. Why?