added tgmpa functionality