added label occusion detection