missing add the section of fileExist and testing it