end the part of metrics