getExtension funciton not found - remove call