getter and setter for keys