set readonly properties on instance