added sub to prase the file