condition for using metrics