added more stuff for phrase parsing