added getValue method