implemented getters and setters