removing debug, correcting error