getValue method