global var, tweaks on category