add: add previous/next function to custom metric