add public accessor methods for private fields