added metrics variable method