Reallocation of mortgages and loans