hard bug corrected