fix input restrictions