get correct value to send