use set key if public, get public if private