a bit of a hack to avoid over updating inputs