added getval method