implementation of all tables