changed check fileexist function