separated elements into tables