updated 'extend' definition and comment