what is a trial balance used for 
a trial balance can be used to detect any mathematical errors that have occurred in a double entry accounting system if the total debits equal the total credits the trial balance is considered to be balanced and there should be no mathematical errors in the ledgers 