implemented mortgaging/demortgaging