corrects bugs