updated code for tax