removing debug loop