fixed/added metafunctions