added file check in task1