modified checkBestIncome.m