comments for checkSolvency function