tweaked metrics calculation a little to comply with own project