adding debt logic