changed from var's to private val's