adding file with right extension