modified inputRecord