add var to stop read only