quick hack for dealing with unsigned as input