some added plotting