adding functions for tracking the statistics of the immutable space