Changed the method name and also modified the file comparasion