adding initial tsp code