fixed the insertion

insertion code corrected