getter and setter functions - old way