removing bade code