adding handle error if file not exists