modify Value class to delete unused code