remove unused assert
improve is_integrate performance