updated loan model