declass calculate_updates