corrected stupid bug