metric 2 generation working, metric 1 retrieval tested, but not working sufficiently