add loss chart