debugging if statement