add newFile fuction