fixing readonly syntax