add getValue method