introducing inactivity pruning