some errors corrected
parser minus types