added tdp fn. ajax