fixing call to intToBaseN