made some classes readonly