implemented goto table