updating file type