Replaced private fiels with protected