added metrics plotting