try a little bit of metaprogramming in ta_morphometry