passing the product array,table name changed,total removed from initialization