renamed table function to tablify and changed it to allow overflow