The foreclosure process as applied to residential mortgage loans is a bank or other secured creditor selling or repossessing a parcel of real property after the owner has failed to comply with an agreement between the lender and borrower called a "mortgage" or "deed of trust". Commonly, the violation of the mortgage is a default in payment of a promissory note, secured by a lien on the property. When the process is complete, the lender can sell the property and keep the proceeds to pay off its mortgage and any legal costs, and it is typically said that "the lender has foreclosed its mortgage or lien". If the promissory note was made with a recourse clause and if the sale does not bring enough to pay the existing balance of principal and fees, then the mortgagee can file a claim for a deficiency judgment. In many states in the United States, items included to calculate the amount of a deficiency judgment include the loan principal, accrued interest and attorney fees less the amount the lender bid at the foreclosure sale.