added active/inactive flag to structures