remove use of getExtension