modified noteparser