WIP: metric part is implemented