metrics api functions added