added cosntructor and accessor