made two methods protected.