added active and inactive tiels