implement naive table