renamed getName to getValue