add or delete meanLines in setMeanLines function.