My pleasure mohinder....
The problem was that in the template files $order variable was being used and due to its scope being global in the ot_tax.php it was getting lost