replaced getters and setters for public member variables