removing the code for checking the file type.