handling int and Integer datatypes