Parameter T and d as variables instead functions