added new charting method