work on TD solver