extend() deprecated