added table function and border