added getters and setters to node