fixed unbound variable bug introduced by wacky indentation