agrego encoding a getValue