updated for 'key_value' method