removed duplicated code embedding parse