extra debug println and typo fix