added first metrics code