got rational parsing working. changed conversion to first create a num and then convert to type