other way to get file extension