seems to be working for sample parsing