refactor relative metrics