corrected terrible and unforgivable programming error