added metric types
added result array for visualisation