trying to figure out how I royally fubared my code