changes to get file extension