add document for getter function