delete unnecessary cods