fixing grammar rules for tupals