added error handling in leadZeroBuilder for instances of length 0