getting and setting the key