should have checked the extension