fixed syntax errors
experimenting wiht dispatch tables