removed !file_existst , !is_file is enough