replaced "addExtends" with "setExtends"