fixed null refrence with cow, and read only with  cow