corrected insterted bug