code added in tab6