refactors ParseTable implementation