moved to metrics class