changed all references of "key" to "value" for all methods