added another funciton addFIle