removed duplicate `extend`