cleaning up library t2d function