Changing a variable unnecessarily public to private