check metric before setting