found the error in the grammar, and corrected it. works for easy test cases