mean calculation now used for tracking too