debugging why things r going so wrong