work-on: minor errors such as int8 input not accept -128 value