final version of 2DTF