bug correcting