made the change to remove the readonly file error