moving getter to cpp file