removed OnMaxSetWithMask and AverageML from services