Changing accessor method public to private