added code for other metric