fixing valueFromRecord