implemented getters into contructors