remove duplicated check