added parse with read function