fixed conversion bug for big numbers
changed conversion to work with unsigned